package com.whately.core.base.model;


import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel
public class ZTreeModel<T>{

    /**
     * 功能id
     */
    private Long id;

    /**
     * 功能名
     */
    private String name;

    /**
     * 父级id
     */
    private Long pid;

    /**
     * 是否打开
     */
    private boolean open;

    /**
     * 是否选中
     */
    private boolean checked;

    /**
     * 属性
     */
    private T attr;

}
